package org.example;

import java.util.*;

public class Main {
    public static void main(String[] args) {
int []a={1,2,3,4,5,6,7};
for(int i=0,j=a.length-1;i<a.length/2;i++,j--){
    int temp=a[i];
    a[i]=a[j];
    a[j]=temp;
    System.out.println("111");
    System.out.println("1111");

}
for(int i=0;i<a.length;i++){
    System.out.println(a[i]);
}
    }
    }